package com.geekstudy.week3.service;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.BlockJUnit4ClassRunner;

@RunWith(BlockJUnit4ClassRunner.class)
public class MicroProfileRestClientServiceVerify {


    @Test
    public void testPostShutdown() {
        MicroProfileRestClientService microProfileRestClientService = new MicroProfileRestClientService();

        microProfileRestClientService.postShutdown();

        // java.lang.IllegalStateException: No RestClientBuilderResolver implementation found!
        //     at org.eclipse.microprofile.rest.client.spi.RestClientBuilderResolver.instance(RestClientBuilderResolver.java:84)
        //     at org.eclipse.microprofile.rest.client.RestClientBuilder.newBuilder(RestClientBuilder.java:55)
        //     at com.geekstudy.week3.service.MicroProfileRestClientService.postShutdown(MicroProfileRestClientService.java:36)
        //     at com.geekstudy.week3.service.MicroProfileRestClientServiceVerify.testPostShutdown(MicroProfileRestClientServiceVerify.java:15)
    }
}
